package com.doo.guia1.model;

import java.util.Date;

public abstract class Person {

	public static final boolean MALE = false;
	public static final boolean FEMALE = true;

	private String name;
	private String lastName;
	private Date birth;
	private Address address;
	private int id;
	private boolean sex;

	public Person(String name, String lastName, Date birth, Address address, int id, boolean sex){
		this.name = name;
		this.lastName = lastName;
		this.birth = birth;
		this.address = address;
		this.id = id;
		this.sex = sex;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastname) {
		this.lastName = lastname;
	}

	public Date getBirth() {
		return birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public boolean isMale() {
		return sex == MALE;
	}

	public void setSex(boolean sex) {
		this.sex = sex;
	}

}
